package com.fortune.dto.in.dUser;

import javax.validation.constraints.Pattern;

import com.fortune.constants.PatternConstants;

import io.swagger.annotations.ApiModelProperty;

public class DResetPasswordDto {
	@Pattern(regexp=PatternConstants.PHONE, message="手机号格式错误")
	@ApiModelProperty(required=true, example="手机号")
	private String phone;
	@Pattern(regexp=PatternConstants.PASSWORD, message="新密码请输入6～20位数字或字母")
	@ApiModelProperty(required=true, example="新密码")
	private String password;
	@Pattern(regexp=PatternConstants.VERIFY_CODE, message="验证码错误")
	@ApiModelProperty(required=true, example="验证码（6位数字）")
	private String code;

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Override
	public String toString() {
		return "DResetPasswordDto{" +
				"phone='" + phone + '\'' +
				", password='" + password + '\'' +
				", code='" + code + '\'' +
				'}';
	}
}
